import request from "@/utils/request";

export function listChannelProduct(params) {
  return request({
    url: "/member/channelProduct/getList",
    method: "GET",
    params,
  });
}
export function setMutiplePrice(data) {
  return request({
    url: "/member/channelProduct/setPrice",
    method: "POST",
    data,
  });
}
export function getChannelProduct(id) {
  return request({
    url: "/member/channelProduct/detail",
    method: "GET",
    params: { id },
  });
}
export function updateChannelProduct(data) {
  return request({
    url: "/member/channelProduct/change",
    method: "POST",
    data,
  });
}
export function addChannelProduct(data) {
  return request({
    url: "/member/channelProduct/add",
    method: "POST",
    data,
  });
}
export function delChannelProduct(ids) {
  return request({
    url: "/member/channelProduct/del",
    method: "POST",
    data: { ids },
  });
}
